<%-- 
    Document   : ConsultarPlanEstudios
    Created on : Jun 28, 2011, 2:49:37 PM
    Author     : a70204
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>

<!-- Los import -->
<%@ page language="java" %>
<%@ page import = "AccesoBaseDatos.GatewayPlanEstudio"%> 
<%@ page import = "Controladores.Form.CrearPlanEstudioForm"%> 

<%@ page import = "java.util.LinkedList"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
<!DOCTYPE html>
<html>
    <head>
        <link rel="stylesheet" type="text/css" href="arivp89.css" media="screen" />
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body>
        <h1>Lista de Planes de Estudio</h1>
        <table border="1">
        <tr>
        <td>ID</td>
        <td>Nombre</td>
        <td>Grado</td>
        </tr>
        <%
        LinkedList<CrearPlanEstudioForm> lista = GatewayPlanEstudio.getListaPlanesEstudio();
        for (int i=0;i<lista.size();i++){
           out.println("<tr>");
           out.println("<td>"+lista.get(i).getID()+"</td>");
           out.println("<td>"+lista.get(i).getNombre()+"</td>");
           out.println("<td>"+lista.get(i).getGrado()+"</td>");
           out.println("</tr>");
        }
        %>
    </table>
    <html:form method="post" action="/TomarIDMostrarPlanEstudiosAction">
        <table border="0">
            <thead>
                <tr>
                    <th>Digite ID plan estudio que desea Consultar</th>
                    <th><html:text property="ID"></html:text></th>
                </tr>
            </thead>
            <tbody>
                <tr>
                    <td></td>
                    <td></td>
                </tr>
            </tbody>
        </table>       
        <br><html:submit title="Agregar">Consultar</html:submit></br>       
    </html:form>    
        
      <a href="PaginaPrincipal.jsp#inicio"><- Atrás</a>     
        
    </body>
</html>
